package com.zhangx.study.demo.faker;

import com.github.javafaker.Faker;
import lombok.extern.slf4j.Slf4j;

import java.util.Locale;

/**
 * @ClassName FakerDemo
 * @Description TODO
 * @Author zhangx
 * @Date 2021/10/14 15:53
 **/
@Slf4j
public class FakerDemo {

    public static void main(String[] args) {
        Faker faker = new Faker(Locale.CHINA);
        for (int i = 0; i < 10; i++) {
            log.info("{};{};{};{}",
                    faker.name().fullName(),
                    faker.phoneNumber().cellPhone(),
                    faker.address().fullAddress(),
                    faker.internet().emailAddress());
        }
    }
}
